﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="SenderMoney.aspx.cs" Inherits="SenderMoney" %>

 <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用 户 平 台 账 户 管 理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
</head>
<body style="overflow-x:hidden">
    <form id="form1" runat="server">
    <div>
        <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="88">
                    短 信  平 台  账 户 管 理
                </th>
            </tr>
            <tr>
                <td>
                    操作
                </td>
                <td>
                    <input type="button" class="btn" value="刷新" onclick="Refresh()" />
                     <asp:Button runat="server" ID="btnexcel" Text="导出Excel" OnClick="btnexcel_Click" CssClass="btn" />
                    <%--<input type="button" class="btn" value="添加" onclick="Go('?act=add')" />--%>
                </td>
            </tr>
            <asp:Panel runat="server" ID="plop">
                <tr style='display: none'>
                    <td>
                        id
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txbid"></asp:TextBox>
                    </td>
                </tr>
                <tr style='display: none'>
                    <td>
                        发送条数
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txbsended"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        用户
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlsenderid">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        金额
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="easyui-numberbox" data-options="precision:2,groupSeparator:','"
                            ID="txbmoney"></asp:TextBox>元
                    </td>
                </tr>
                 
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button runat="server" CssClass="btn" ID="btnSenderMoneyOk" Text="确定" OnClick="btnSenderMoneyOk_Click" />
                    </td>
                </tr>
            </asp:Panel>
        </table>
        <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:GridView ID="gvList" runat="server" AllowPaging="false" CellPadding="2" AutoGenerateColumns="False"
                        GridLines="Both" EmptyDataText="没有数据" CssClass="tableBorder" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="id" />
                            <asp:BoundField DataField="senderID" HeaderText="用户编码" />
                              <asp:TemplateField HeaderText="用户名">
                                <ItemTemplate>
                                    <%# FTchina.SMSServer.SMSServer.GetSenderNameByID(Eval("senderID").ToString()) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="money" HeaderText="金额(元)" />
                            <asp:BoundField DataField="sended" HeaderText="发送条数" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <input class="btn" type="button" onclick="Go('?act=mod&id=<%#Eval("id") %>')" value="修改" />
                                   <%-- <input class="btn" type="button" onclick="javascript:if (confirm('您真的确定要删除吗？\n\n请确认！')==true){Go('?act=del&id=<%#Eval("id")%>')}else{return false}"
                                        value="删除" />--%>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Visible="False" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    <asp:Literal runat="server" ID="litpager"></asp:Literal>
    </div>
    </form>
    <script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
    <script language='javascript'><!--
        TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
--></script>
</body>
</html>
